import {  WeaLocaleProvider, WeaCheckbox  } from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;
export default class AddRow extends React.Component {
    render() {
        const { isAddRow, isField, ...restProps} = this.props;
        if (isField) {             
            return (
                <div className="ant-row">
                    <label>{getLabel('506302','新增行')}</label>
                    <WeaCheckbox
                    value={isAddRow}
                    display="switch"
                    id='add'
                    style={{display: 'inline'}} {...restProps} /> 
                </div>
            )
        }
        return null;
    }
} 